import { createRouter, createWebHistory } from "vue-router";
import Home from "../views/Home/index.vue";

const routes = [
  { path: "/", component: Home },
  { path: "/login", component: () => import("@/views/Login/index.vue") },
  {
    path: "/search",
    component: () => import("@/views/Search/index.vue"),
  },
  {
    path: "/test",
    component: () => import("@/views/Test/index.vue"),
  },
  {
    path: "/:path(.*)",

    component: () => import("@/views/NotFound/index.vue"),
    // redirect: { path: "@/views/NotFound/index.vue" },
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
